Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS-2621: Add stansdato datepicker #1478

Conversation

vetlesolgaard
Copy link
Contributor

@vetlesolgaard vetlesolgaard commented Oct 2, 2024

Hva har blitt lagt til✨🌈

Legger til felt for stansdato på innstillingen om stans som går til NAY.

Se tilhørende PR i ismanglendemedvirkning

Screenshots 📸✨

Screen.Recording.2024-10-03.at.13.24.15.mov

@vetlesolgaard vetlesolgaard force-pushed the IS-2621-Add-possibility-to-add-stansdato-in-instilling-to-NAY branch 5 times, most recently from c12b448 to 078e266 Compare October 3, 2024 11:24
@vetlesolgaard vetlesolgaard changed the title 🚧WIP🚧 IS-2621: Add stansdato datepicker IS-2621: Add stansdato datepicker Oct 3, 2024
@vetlesolgaard vetlesolgaard marked this pull request as ready for review October 3, 2024 11:25
@vetlesolgaard vetlesolgaard requested a review from a team as a code owner October 3, 2024 11:25
@vetlesolgaard vetlesolgaard force-pushed the IS-2621-Add-possibility-to-add-stansdato-in-instilling-to-NAY branch 4 times, most recently from ae1d194 to 6038a16 Compare October 3, 2024 12:41
const { datepickerProps, inputProps } = useDatepicker({
fromDate: varselSvarfrist,
onDateChange: (date: Date | undefined) => {
if (!!date) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trenger man håndtere setting og clearing av errors her?
Ser ikke ut som vi gjør det i AvslagDatePicker og VedtakFraDato hvor vi også har en påkrevd dato. Hadde vært nice å slippe kode for det her også, kanskje det er lettere om man skiller det ut som egen komponent? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er litt redd for controlled components ettersom jeg ikke helt forstår hvordan det fungerer, men var ikke så mye greier så måtte til ser jeg. Endrer 🚀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Synes det blir litt vel magisk med FormProvider, men fant ikke en alternativ måte, så da blir det det 🥲

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blir bra det 👍

@vetlesolgaard vetlesolgaard force-pushed the IS-2621-Add-possibility-to-add-stansdato-in-instilling-to-NAY branch from 6038a16 to 29ae1df Compare October 4, 2024 08:26
@vetlesolgaard vetlesolgaard merged commit aa556ea into master Oct 4, 2024
4 checks passed
@vetlesolgaard vetlesolgaard deleted the IS-2621-Add-possibility-to-add-stansdato-in-instilling-to-NAY branch October 4, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants